import request from '@/utils/myHttp'

// api地址
const api = {
  list: '?s=/api/Goods/list',
  detail: '?s=/api/goods/detail'
}

// 商品列表
export const list = param => {
	const options = {
		  url: api.list,
		  data: param
	}
  return request(options)
}

// 商品详情
export const detail = goodsId => {
	const options = {
		  url: api.detail,
		  data: {goodsId}
	}
  return request(options)
}
